import Dashboard from './dashboard';

/**
 * 主网站路由
 */

const routes = [
  {
    path: '/',
    name: 'index',
    meta: { title: '首页' },
    component: () => import('@/views/home/index'),
  },
  {
    path: '/resouce',
    name: 'resouce',
    meta: { title: '资源下载' },
    component: () => import('@/views/home/resouce'),
  },
  {
    path: '/admin_login',
    name: 'adminLogin',
    meta: { title: '管理后台登录' },
    component: () => import('@/views/home/AdminLogin'),
  },
  {
    path: '/Head',
    name: 'Head',
    meta: { title: '头部' },
    component: () => import('@/views/home/Head'),
  },
  {
    path: '/dashboard',
    name: 'dashboard',
    meta: { title: '管理后台' },
    component: () => import('@/views/dashboard/Dashboard'),
    children: [...Dashboard.routes],
  },
  {
    path: '/home',
    name: 'Home',
    meta: { title: '测试专用' },
    component: () => import('@/views/Home'),
  },
  {
    path: '/about',
    name: 'About',
    meta: { title: '关于我们' },
    component: () => import('@/views/About'),
  },
  {
    path: '/news_information',
    name: 'newsInformation',
    meta: { title: '新闻资讯' },
    component: () => import('@/views/home/NewsInformation'),
  },
  {
    path: '/CraftsmanWorkshop',
    name: 'CraftsmanWorkshop',
    meta: { title: '工匠工坊' },
    component: () => import('@/views/home/CraftsmanWorkshop'),
  },
  {
    path: '/trainingplatform',
    name: 'trainingplatform',
    meta: { title: 'C2.1产品1 - 实训平台' },
    component: () => import('@/views/trainingplatform/TrainingPlatform'),
  },
];

export default routes;
